﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="DangBai.aspx.cs" Inherits="QuangMobile.Admin.DangBai"
    MasterPageFile="~/Admin/AdminSite.Master" EnableEventValidation="true" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="NoiDungChinh">
        <img class="FormImage" src="images/computer.png" />
        <p class="FormTitle">
            Đăng bài viết</p>
    </div>
    <div class="NoiDung">
        <div class="MenuDoc">
            <br />
            <span style="">Menu dọc</span>
            <asp:TreeView ID="trvMenu" runat="server" OnSelectedNodeChanged="trvMenu_SelectedNodeChanged"
                OnTreeNodePopulate="trvMenu_TreeNodePopulate" ForeColor="White" NodeIndent="20"
                CssClass="TreeviewMenu" CollapseImageUrl="images/menu0.gif" ExpandImageUrl="images/menu3.gif">
                <SelectedNodeStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true" />
                <HoverNodeStyle Font-Bold="true" />
            </asp:TreeView>
        </div>
        <div class="FormThaoTac">
            <h1 id="TieuDeChuyenMuc" runat="server">
            </h1>
            <asp:HiddenField ID="MenuID" runat="server" />
            <table class="ListForm">
                <tr>
                    <td>
                        Tiêu đề bài viết
                    </td>
                    <td>
                        <asp:TextBox ID="txtTieuDe" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Ảnh minh họa
                    </td>
                    <td valign="top">
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:Image ID="imgBaiViet" runat="server" Width="100px" />
                                <asp:FileUpload ID="ImgUploadFile" Width="200px" runat="server" />
                                <asp:ImageButton ID="btnXemAnh" runat="server" ImageUrl="../Images/search-icon.png"
                                    Height="20px" Width="20px" OnClick="btnXemAnh_Click" />
                                <asp:ImageButton ID="btnXoaAnh" runat="server" ImageUrl="../Images/delete.png" Height="17px"
                                    Width="16px" OnClick="btnXoaAnh_Click" />
                            </ContentTemplate>
                            <Triggers>
                                <asp:PostBackTrigger ControlID="btnXemAnh" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td>
                        Mô tả ảnh bài viết
                    </td>
                    <td>
                        <asp:TextBox ID="txtImageCaption" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        Tóm tắt bài viết
                    </td>
                    <td>
                        <asp:TextBox ID="txtTomTat" runat="server" TextMode="MultiLine" Width="100%" Rows="4"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        Nội dung bài viết
                    </td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="txtChiTiet" runat="server" Height="300" Width="700" ToolbarStartExpanded="true">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        File đính kèm
                    </td>
                    <td>
                        <asp:Label ID="lblFileDinhKem" runat="server" Text=""></asp:Label>
                        <asp:FileUpload ID="FileDinhkem" Width="200px" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnThem" runat="server" CssClass="cmdBtn" Text="Thêm bài viết" OnClick="btnThem_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
